<?php
// Version
define('VERSION', '3.0.2.1');
define('OCTYPE', 'FREE');

// Configuration
if (PHP_OS == 'Darwin') {
	if (is_file('config.local.php')) {
		require_once('config.local.php');
	}
} else {
	if (is_file('config.php')) {
		require_once('config.php');
	}
}


// Install
if (!defined('DIR_APPLICATION')) {
	header('Location: install/index.php');
	exit;
}

// VirtualQMOD
require_once('./vqmod/vqmod.php');
VQMod::bootup();

// VQMODDED Startup
require_once(VQMod::modCheck(DIR_SYSTEM . 'startup.php'));

start('api');